home *** CD-ROM | disk | FTP | other *** search
/ The Ultimate Guide to Advanture Travel / The Ultimate Guide to Advanture Travel.iso / pc / installa.6 / Online Files / SprintNet < prev    next >
Text File  |  1995-07-10  |  18KB  |  594 lines

  1. !*****************************************************************************
  2. !   C O P Y R I G H T   A N D   C O N F I D E N T I A L I T Y   N O T I C E
  3. !*****************************************************************************
  4. !
  5. !      Copyright © 1987-1995 America Online, Inc.  All rights reserved.
  6. !      This software contains valuable confidential and proprietary
  7. !      information of America Online, Inc. and is subject to applicable
  8. !      licensing agreements.  Unauthorized reproduction, transmission or
  9. !      distribution of this file and its contents is a violation of
  10. !      applicable laws.
  11. !
  12. !            A M E R I C A   O N L I N E   C O N F I D E N T I A L
  13. !
  14. !*****************************************************************************
  15. ! ---------------------------------------------
  16. !   Sprintnet CCL for AO v2.1 and above
  17. !   By: Matt Day
  18. !
  19. !   Version 2.1
  20. ! Created from old Sprintnet CCL
  21. ! Changed 2/4/93 to turn on hardware handshaking.
  22. ! Changed 2/12/93 Matchstr to new format.
  23. ! Changing login string “windows 0001” to “mac aol 0001”.  -- RG, 93/09/26
  24. !  Adding pauses before and after "+++" command. - RG, 1/21/94
  25. !  Adding new and improved connection messages. - RG, 2/23/94
  26. !  Added network query for connect speed. -JH, 11/22/94
  27. !-----------------------------------
  28. !
  29. ! Connect Sequence:
  30. !
  31. -LABEL 0
  32. CanBtn 19               { if cancel button - just exit }
  33. Jsr "CheckPhoneLength"
  34. NewString sNetworkSync
  35. NewLngInt bHighSpeed
  36. SetVar bHighSpeed 0
  37. NewLngInt bSerSpeed
  38. SetVar bSerSpeed ~BAUD
  39. CheckPort "19" ~PORT
  40. DsplyMsg "Step 1:  Initializing modem"
  41. SetTries 0
  42. ChrDelay 2
  43. SerReset ~BAUD 0 8 1
  44. IfEq Handshake 0
  45.  Jump "TurnHandshakeOff"
  46.  
  47. -Label TurnHandshakeOn 
  48. IfEq HH_ON ""
  49.  Jump "TurnHandshakeOff"
  50. HSReset 0 1 17 19
  51. Jump "WakeUpModem"
  52.  
  53. -Label TurnHandshakeOff 
  54. HSReset 0 0 17 19
  55. -Label WakeUpModem
  56. DsplyPic 1
  57. !
  58. !----------------------------------
  59. !
  60. -LABEL 1                { wake up the modem }
  61. Flush
  62. !-----------------------------------                        
  63. ZMIT "2" "$INIT$\0D"         { Send modem string; jump to 4 if empty}
  64. Pause 40            { Allow modem to settle between commands.}
  65. !
  66. -Label 2
  67. !
  68. ! *No longer allow +++ echoed as proof of initialization.*
  69. IfTries 0 "3"             { Only do this if we need to }
  70. ClrMchStr
  71. MatchStr "3" "OK"         
  72. MatchStr "3" ">"          { Special case for Avatex 1200 modems}
  73. MatchStr "3" "0\0D"      { Verbose is grandiose but terse ain't worse }
  74. !
  75. Pause 180               { Pause for 3 sec min gap }
  76. Xmit "+++"              { Get the modems attention}
  77. Pause 180               { Pause for 3 sec min gap }
  78. Xmit "$ATTENTION$H\0D"            {Hang up, just in case we were online}
  79. Wait 120                { Pause for 2 seconds, minimum gap required}
  80. !
  81. -Label 3 
  82. !-----------------------------------
  83. -LABEL 4                { just saw 'OK'- Set up modem }
  84. Flush
  85. !
  86. ClrMchStr
  87. MatchStr "5" "OK"         { We'd better be getting responses by now. }
  88. MatchStr "38" "ERROR"     { If not, something is wrong - we're gone. }
  89. MatchStr "5" ">"          {Special case for Avatex 1200}
  90. !
  91. Pause 40            { Allow modem to settle between commands.}
  92. IfEq Handshake 0
  93.   ZMIT "5" "$ATTENTION$$HH_OFF$$CONFIG$\0D"  { Send modem string; jump if empty}
  94. Else
  95.   ZMIT "5" "$ATTENTION$$HH_ON$$CONFIG$\0D"  { Send modem string; jump if empty}
  96. Wait 120                { Two seconds to get it right. }
  97. IncTries
  98. IfTries 1 "1"             { Try 1: Reset modem.  Try 2: Hang up/reset }
  99. Jump "33"
  100. !-----------------------------------
  101. -LABEL 5                { Now try to dial }
  102. DsplyMsg "Step 2:  Dialing ~PREF~NOCW~FONE"
  103. !
  104. ClrMchStr
  105. MatchStr "Got57600" "CONNECT 57600"
  106. MatchStr "Got38400" "CONNECT 38400"
  107. MatchStr "Got28800" "CONNECT 28800"
  108. MatchStr "Got26400" "CONNECT 26400"
  109. MatchStr "Got24000" "CONNECT 24000"
  110. MatchStr "Got21600" "CONNECT 21600"
  111. MatchStr "Got19200" "CONNECT 19200"
  112. MatchStr "Got16800" "CONNECT 16800"
  113. MatchStr "Got14400" "CONNECT 14400"
  114. MatchStr "Got12000" "CONNECT 12000"
  115. MatchStr "Got9600" "CONNECT 9600"
  116. MatchStr "Got4800" "CONNECT 4800"    
  117. MatchStr "Got2400" "CONNECT 2400\0D"    
  118. MatchStr "Got2400" "CONNECT 2400 "    
  119. MatchStr "Got2400" "CONNECT 2400/"    
  120. MatchStr "Got1200" "CONNECT 1200\0D"
  121. MatchStr "Got1200" "CONNECT 1200 "
  122. MatchStr "Got1200" "CONNECT 1200/"
  123. MatchStr "Got300" "CONNECT 300"
  124. MatchStr "Got300" "CONNECT\0D"     {assume "CONNECT" means the current baud rate}
  125. MatchStr "40" "NO DIAL"          
  126. MatchStr "27" "NO ANSWER"      
  127. MatchStr "41" "VOICE"           
  128. MatchStr "42" "NO CARRIER"     
  129. MatchStr "26" "BUSY"
  130. MatchStr "38" "ERROR"
  131. !
  132. !SetTries 0              {DMC E: leave the tries count alone}
  133. CanBtn 18               { if cancel button hit, hangUp then exit }
  134. Pause 30
  135. Xmit "$ATTENTION$D~TONE~PREF~NOCW~FONE\0D"
  136. !                       { jump to label #13 if match }
  137. Wait 3600               { wait 40 seconds for CONNECT msg from modem }
  138. IFTRIES 1 "1"             {If we can't connect, try resetting the modem}
  139. !
  140. !
  141. ! This CCL section formerly checked for "300" through "9600" for
  142. ! no apparent reason - we do not support MNP connections and we'd
  143. ! never see that response string at this point anyway.
  144. !
  145. Jump "43"                 { else hang up phone & exit  }
  146. !
  147. !-----------------------------------
  148. !
  149. -Label Got300
  150. DsplyMsg "Step 3:  Connecting at 300 bps"
  151. SetSpeed 300
  152. IfEq Handshake 0
  153.   SetVar bSerSpeed 300
  154. Jump "SlowConnect"
  155. !
  156. -Label Got1200
  157. DsplyMsg "Step 3:  Connecting at 1200 bps"
  158. SetSpeed 1200
  159. IfEq Handshake 0
  160.   SetVar bSerSpeed 1200
  161. Jump "SlowConnect"
  162. !
  163. -Label Got2400
  164. DsplyMsg "Step 3:  Connecting at 2400 bps"
  165. SetSpeed 2400
  166. IfEq Handshake 0
  167.   SetVar bSerSpeed 2400
  168. Jump "DangerousConnect"
  169. !
  170. -Label Got4800
  171. DsplyMsg "Step 3:  Connecting at 4800 bps"
  172. SetSpeed 4800
  173. IfEq Handshake 0
  174.   SetVar bSerSpeed 4800
  175. Jump "DangerousConnect"
  176. !
  177. -Label Got9600
  178. DsplyMsg "Step 3:  Connecting at 9600 bps"
  179. SetSpeed 9600
  180. IfEq Handshake 0
  181.   SetVar bSerSpeed 9600
  182. Jump "LudicrousConnect"
  183. !
  184. -Label Got12000
  185. DsplyMsg "Step 3:  Connecting at 12000 bps"
  186. SetSpeed 12000
  187. IfEq Handshake 0
  188.   Jump "46"
  189. Jump "LudicrousConnect"
  190. !
  191. -Label Got14400
  192. DsplyMsg "Step 3:  Connecting at 14400 bps"
  193. SetSpeed 14400
  194. IfEq Handshake 0
  195.   Jump "46"
  196. Jump "LudicrousConnect"
  197. !
  198. -Label Got16800
  199. DsplyMsg "Step 3:  Connecting at 16800 bps"
  200. SetSpeed 16800
  201. IfEq Handshake 0
  202.   Jump "46"
  203. Jump "LudicrousConnect"
  204. !
  205. -Label Got19200
  206. DsplyMsg "Step 3:  Connecting at 19200 bps"
  207. SetSpeed 19200
  208. IfEq Handshake 0
  209.   Jump "46"
  210. Jump "LudicrousConnect"
  211. !
  212. -Label Got21600
  213. DsplyMsg "Step 3:  Connecting at 21600 bps"
  214. SetSpeed 21600
  215. IfEq Handshake 0
  216.   Jump "46"
  217. Jump "LudicrousConnect"
  218. !
  219. -Label Got24000
  220. DsplyMsg "Step 3:  Connecting at 24000 bps"
  221. SetSpeed 24000
  222. IfEq Handshake 0
  223.   Jump "46"
  224. Jump "LudicrousConnect"
  225. !
  226. -Label Got26400
  227. DsplyMsg "Step 3:  Connecting at 26400 bps"
  228. SetSpeed 26400
  229. IfEq Handshake 0
  230.   Jump "46"
  231. Jump "LudicrousConnect"
  232. !
  233. -Label Got28800
  234. DsplyMsg "Step 3:  Connecting at 28800 bps"
  235. SetSpeed 28800
  236. IfEq Handshake 0
  237.   Jump "46"
  238. Jump "LudicrousConnect"
  239. !
  240. -Label Got38400
  241. DsplyMsg "Step 3:  Connecting at 38400 bps"
  242. SetSpeed 38400
  243. IfEq Handshake 0
  244.   Jump "46"
  245. Jump "LudicrousConnect"
  246. !
  247. -Label Got57600
  248. DsplyMsg "Step 3:  Connecting at 57600 bps"
  249. SetSpeed 57600
  250. IfEq Handshake 0
  251.   Jump "46"
  252. Jump "LudicrousConnect"
  253. !
  254. -Label SlowConnect
  255. SetVar sNetworkSync "\0DD\0D"
  256. SetVar bHighSpeed 0
  257. IfEq Handshake 0
  258.   Jump "DoReset"
  259. Jump "12"
  260. !
  261. -Label DangerousConnect
  262. SetVar sNetworkSync "@D\0D"
  263. SetVar bHighSpeed 0
  264. IfEq Handshake 0
  265.   Jump "DoReset"
  266. Jump "12"
  267. !
  268. -Label LudicrousConnect
  269. SetVar sNetworkSync "@D\0D"
  270. SetVar bHighSpeed 1
  271. Jump "12"
  272. !
  273. -LABEL DoReset
  274. Pause 180               { Pause for 3 sec min gap }
  275. Xmit "+++"               { Get the modems attention}
  276. Pause 180               { Pause for 3 sec min gap }
  277. SerReset bSerSpeed 0 8 1
  278. Wait 60
  279. MatchStr "12" "CONNECT"
  280. Xmit "$ATTENTION$O\0D"            {Go back to online state}
  281. Wait 60                  { Pause for 1 second, minimum gap required}
  282.  
  283. Jump "12"
  284. !-----------------------------------
  285. !
  286. -LABEL 12               { Modem just sent 'CONNECT' message }
  287. Pause 20
  288. FLUSH
  289. ChrDelay 20      
  290. DsplyPic 2
  291. !        
  292. -LABEL 13               {  Establishing Connection }
  293. Pause 30
  294. !
  295. ClrMchStr
  296. MatchStr "15" "TERMINAL ="         {Send a D1}
  297. MatchStr "15" "TERMINAL="         {Send a D1}
  298. MatchStr "44" "NO CARRIER"
  299. MatchStr "28" "\0D\0A ?"         {Command error}
  300. MatchStr "32" "LOCAL"     {Net Busy}
  301. MatchStr "16" "\0D\0A@"   {Skip the D1, missed the = sign}
  302. MatchStr "45" "ANSNET"
  303. MatchStr "45" "UU.NET"
  304. MatchStr "45" "SPRINT-IP"
  305. MatchStr "45" "SATURN.BBN"
  306. !
  307. DsplyMsg "Step 4:  Requesting network attention"
  308. Xmit sNetworkSync
  309. Wait 600                {Try to sync up to four times}
  310. IncTries
  311. IfTries 4 "32"
  312. Jump "13"
  313. !
  314. !-------------------------------
  315. !
  316. -LABEL 15               { = for term ID}
  317. !                         Sending Terminal Identifier
  318. !
  319. ChrDelay 2
  320. SetTries 0
  321. -LABEL SendD1
  322. ClrMchStr
  323. MatchStr "44" "NO CARRIER"     
  324. MatchStr "16" "\0D\0A@"
  325. MatchStr "28" "\0D\0A ?"         {Command error}
  326. MatchStr "20" "EXCHANGE"  {800 number dialing.}
  327. Pause 20
  328. DsplyMsg "Step 5:  Talking to network"
  329. Xmit "D1\0D"
  330. !
  331. Wait 600
  332. IncTries
  333. IfTries 4 "37"
  334. Jump "SendD1"
  335. !
  336. !-----------------------------------
  337. !
  338. -LABEL 16
  339. !
  340. ClrMchStr
  341. MatchStr "44" "NO CARRIER"     
  342. MatchStr "GoLow" "11:2"            { Network says speed is   300 bps }
  343. MatchStr "GoLow" "11:3"            { Network says speed is  1200 bps }
  344. MatchStr "GoLow" "11:12"           { Network says speed is  2400 bps }
  345. MatchStr "GoHigh" "11:13"          { Network says speed is  4800 bps }
  346. MatchStr "GoHigh" "11:14"          { Network says speed is  9600 bps }
  347. MatchStr "GoHigh" "11:15"          { Network says speed is 19200 bps }
  348. MatchStr "GoHigh" "11:16"          { Network says speed is 48000 bps }
  349. MatchStr "GoHigh" "11:17"          { Network says speed is 56000 bps }
  350. MatchStr "GoHigh" "11:18"          { Network says speed is 64000 bps }
  351. !
  352. Xmit "par? 11\0D"                  { CCITT parameter 11 is speed }
  353. Wait 600
  354. !
  355. SetVar bHighSpeed 0                { No answer, default to low speed }
  356. Jump "HostConnect"
  357. !
  358. -LABEL GoLow
  359. SetVar bHighSpeed 0
  360. Jump "HostConnect"
  361. !
  362. -LABEL GoHigh
  363. SetVar bHighSpeed 1
  364. !
  365. !
  366. -LABEL HostConnect
  367. !
  368. !                         Sending America Online node number.
  369. !
  370. ClrMchStr
  371. MatchStr "44" "NO CARRIER"     
  372. MatchStr "17" " CONNECTED"
  373. MatchStr "32" "DISCONNECT" {Invalid node}
  374. MatchStr "28" "\0D\0A ?"          {Command error}
  375. MatchStr "32" "NOT RE"   {AO down}
  376. MatchStr "32" "AVAIL"      {AO down}
  377. MatchStr "32" "REJECT"     {AO down}
  378. MatchStr "26" "LOCAL"     {Net busy}
  379. MatchStr "26" "BUSY"      {Net busy}
  380. MatchStr "28" "ERROR"      {Command error}
  381. MatchStr "32" "NOT PERMIT" {Access via wats line.}
  382. MatchStr "32" "CONGEST"    { congested }
  383. MatchStr "32" "NOT OPERATING"
  384. !
  385. Pause 20
  386. DsplyMsg "Step 6:  Connecting to America Online"
  387. ifEq bHighSpeed 0
  388. Xmit "C ~SLOW~SUBA*mac aol 0001\0D"
  389. Else
  390. Xmit "C ~FAST~SUBA*mac aol 0001\0D"
  391. Wait 2700
  392. Jump "37"
  393. !
  394. !-----------------------------------
  395. !
  396. -LABEL 17               { System Ready ... All is well }
  397. DsplyMsg "Step 7:  Checking Password…"
  398. Exit 0
  399. !
  400. !-----------------------------------
  401. !
  402. -Label 18               { User aborted sequence }
  403. Exit -51
  404. !
  405. -Label 19               { User aborted sequence...dont need to hang up though}
  406. Exit -111
  407. !-----------------------------------
  408. !
  409. -Label 20              {800 number sequence.}
  410. Pause 30
  411. !
  412. ClrMchStr
  413. MatchStr "44" "NO CARRIER"     
  414. MatchStr "16" "\0D\0A@"
  415. MatchStr "28" "\0D\0A ?"         {Command error}
  416. MatchStr "20" "EXCHANGE"  {800 number dialing.}
  417. !
  418. Xmit "~TLN2\0D"
  419. Wait 2000
  420. Jump "37"
  421. !
  422. !
  423. !-----------------------------------
  424. !
  425. -Label 26              {Busy phone}
  426. IfEq ~ATMP 0
  427. DsplyMsg "The number dialed is busy. Trying second number."
  428. Talert "The number dialed is busy.  Please try again later.\0D\0DTo find another local access number, select Get Local # from the Locality pop-up menu, and click on Sign On."
  429. IfEq ~ATMP 1
  430. OneAlert 1 "\0D\0DFor more information, select Help from the Apple menu."
  431. Exit -1
  432. !
  433. !-----------------------------------
  434. !
  435. !
  436. !
  437. -Label 27              {No Answer}
  438. IfEq ~ATMP 0
  439. DsplyMsg "The number dialed is not answering. Trying second number."
  440. TAlert "The number dialed is not answering.  Please try again later.\0D\0DTo find another local access number, select Get Local # from the Locality pop-up menu, and click on Sign On."
  441. IfEq ~ATMP 1
  442. OneAlert 1 "\0D\0DFor more information, select Help from the Apple menu."
  443. Exit -1
  444. !
  445. !---------------------------------------------
  446. !
  447. -Label 28
  448. Talert "The access company failed to respond.  Please try again later.\0D\0DTo find another local access number, select Get Local # from the Locality pop-up menu, and click on Sign On."
  449. IfEq ~ATMP 1
  450. OneAlert 1 "\0D\0DFor more information, select Help from the Apple menu."
  451. Exit -1
  452. !
  453. !-----------------------------------
  454. !
  455. -Label 32              {not_avail}
  456. TAlert "The final connection step to ~APPL did not complete.  Please try again later."
  457. Jump "36"
  458. !
  459. !-----------------------------------
  460. !
  461. -Label 33              {no response from modem}
  462. TAlert "~APPL was unable to initialize your modem.\0D\0D1. Turn your modem off, then back on.\0D2. Check your modem cable connections.\0D"
  463. IfEq ~ATMP 1
  464. OneAlert 1 "3  Click on Setup, and verify your modem type selection.\0D\0DFor more information, select Help from the Apple menu."
  465. Exit -1
  466. !
  467. !-----------------------------------
  468. -Label 35
  469. Exit -1
  470. !
  471. -Label 36
  472. IfEq ~ATMP 1
  473. OneAlert 1 "\0D\0DFor more information, select Help from the Apple menu."
  474. Exit -1
  475. !-----------------------------------
  476. ! Some new error messages since error #1 is getting kind of meaningless.
  477. -Label 37          { Time-Out }
  478. TAlert "It has taken too long to process your connection.\0D\0D1. Test your modem with another communications program.\0D2. Verify the local access number by selecting Get Local # "
  479. IfEq ~ATMP 1
  480. OneAlert 1 "from the Locality pop-up menu, then clicking on Sign On.\0D\0DFor more information, select Help from the Apple menu."
  481. Exit -1
  482. -Label 38          {Modem command error}
  483. TAlert "Your modem is not accepting our commands.\0D\0D1. Turn your modem off, then back on.\0D2. Click on Setup, and verify your modem type selection."
  484. Jump "36"
  485. !
  486. -Label 40
  487. TAlert "The modem has reported no dial tone.\0D1. Check the phone line connections.\0D2. Make sure the line from the wall is connected to the jack labeled Line, Telco, Wall, or Jack.\0D"
  488. IfEq ~ATMP 1
  489. OneAlert 1 "3. Use a telephone to check for a dial tone.\0D\0DFor more information, select Help from the Apple menu."
  490. Exit -1
  491. !
  492. -Label 41
  493. TAlert "The number dialed did not connect to the access company.\0D\0D1. Verify your setup information by clicking on Setup.\0D2. Verify the local access number by selecting Get Local # "
  494. IfEq ~ATMP 1
  495. OneAlert 1 "from the Locality pop-up menu, then clicking on Sign On.\0D\0DFor more information, select Help from the Apple menu."
  496. Exit -1
  497. !
  498. -Label 42
  499. TAlert "The modem was unable to get a carrier signal.\0D\0D1. Verify your setup information by clicking on Setup.\0D2. Verify the local access number by selecting Get Local # "
  500. IfEq ~ATMP 1
  501. OneAlert 1 "from the Locality pop-up menu, then clicking on Sign On.\0D\0DFor more information, select Help from the Apple menu."
  502. Exit -1
  503. !
  504. -Label 43
  505. TAlert "The modem detected a timeout.\0D\0D1. Test your modem with another communications program.\0D2. Verify the local access number by selecting Get Local # "
  506. IfEq ~ATMP 1
  507. OneAlert 1 "from the Locality pop-up menu, then clicking on Sign On.\0D\0DFor more information, select Help from the Apple menu."
  508. Exit -1
  509. !
  510. -Label 44
  511. TAlert "The modem has lost carrier signal.  Please try again."
  512. Exit -1
  513. !
  514. -Label 45
  515. TAlert "The number specified is not a Sprint number.\0D\0D1. Verify your setup information by clicking on Setup.\0D2. Verify the local access number by selecting Get Local #"
  516. IfEq ~ATMP 1
  517. OneAlert 1 "from the Locality pop-up menu, then clicking on Sign On."
  518. Exit -1
  519. !
  520. -Label 46
  521. OneAlert 1 "Connection speeds above 9600 bps require the use of Hardware Handshaking."
  522. Exit -1
  523. !------------------------------------
  524. -Label CheckPhoneLength
  525. !
  526. NewString sPhoneNumber
  527. SetVar sPhoneNumber ~FONE
  528. NewLngInt lCount
  529. SetVar lCount 4
  530. !
  531. -Label TopPhoneLoop
  532. IfEq lCount 0
  533. Jump "FinishPhoneLength"
  534. DecVar sPhoneNumber
  535. DecVar lCount
  536. Jump "TopPhoneLoop"
  537. !
  538. -Label FinishPhoneLength
  539. IfEq sPhoneNumber ""
  540. Jump "EmptyPhone"
  541. Return
  542. !
  543. -Label EmptyPhone
  544. OneAlert 1 "You must enter phone numbers before signing on.\0D\0DSelect ""Setup"" and verify the phone numbers you have entered."
  545. Exit -111
  546. !------------------------------------
  547. !
  548. *-Label 0                {Hangup Sequence}
  549. *CanBtn 2
  550. !
  551. *Flush
  552. !
  553. *SetTries 0            {DMC: see if we can get the modem's attention}
  554. *ClrMchStr
  555. *MatchStr "1" "OK"         { Dont look for an echo, may be a}
  556. *MatchStr "1" "NO"         { false echo.  Any type of match is good}
  557. *MatchStr "1" ">"          { Special case for Avatex 1200 modems}
  558. !
  559. *Pause 180               { Pause for 3 sec min gap }
  560. *Xmit "+++"              { Get the modems attention}
  561. *Pause 180               { Pause for 3 sec min gap }
  562. *IfTries 0 "1"
  563. !
  564. *ClrMchStr
  565. *MatchStr "1" "OK"
  566. *MatchStr "2" "CARRIER"    {Any type of match is good}
  567. *MatchStr "1" ">"         { Special case for Avatex 1200 modems}
  568. !
  569. *Pause 180               { Pause for 3 sec min gap }
  570. *Xmit "+++"              { Get the modems attention}
  571. *Pause 180               { Pause for 3 sec min gap }
  572. !
  573. *-Label 1
  574. *IncTries
  575. *ClrMchStr
  576. *MatchStr "2" "ERROR"
  577. *MatchStr "2" "OK"
  578. *MatchStr "2" "CARRIER"
  579. *MatchStr "2" ">"          { Special case for Avatex 1200 modems}
  580. !
  581. *Pause 40
  582. *Xmit "$ATTENTION$H\0D"
  583. *Wait 300
  584. !
  585. *-Label 2
  586. *Pause 40                { Allow modem to settle between commands.}
  587. *ZMIT "3" "$ATTENTION$$REST$\0D"         { Send shutdown string}
  588. !
  589. *-Label 3
  590. *Exit 0
  591. !
  592. ###
  593.